package evolutionaryLoop.selectionProtocol;

import evolutionaryLoop.EvolutionaryParameters;
import evolutionaryLoop.Population;

public class GenerationMixing extends SelectionProtocol{

	public GenerationMixing(EvolutionaryParameters parameters) {
		super(parameters);
	}

	@Override
	public Population selection(Population children, Population parents) {
		children.merge(parents); 
		return children.getBest(getPopulationSize());
	}

	public String toString(){
		return "Generation mixing"; 
	}
	
}
